package hospital.serviceImpl;

import hospital.dao.LoginDao;
import hospital.model.UserInfoModel;
import hospital.service.LoginService;

public class LoginServiceImpl implements LoginService {
	private LoginDao loginDao;

	@Override
	public String getPassword(String username) {
		return loginDao.selectGetPassword(username);
	}

	public LoginDao getLoginDao() {
		return loginDao;
	}

	public void setLoginDao(LoginDao loginDao) {
		this.loginDao = loginDao;
	}

	@Override
	public UserInfoModel getUserInfo(String username) {
		return loginDao.selectGetUserInfo(username);
	}

}
